﻿using SqlSugar;

namespace NET6.WebAPI.Entities.Base
{
    /// <summary>
    /// 审核表基础类
    /// </summary>
    public class ExamineBase
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ID { get; set; }

        /// <summary>
        /// 业务表 ID
        /// </summary>
        public int? BusinessID { get; set; }

        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime? SubmitTime { get; set; }

        /// <summary>
        /// 审核类型枚举
        /// </summary>
        public enum ExamineTypeEnum
        {
            Add = 1,
            Modify = 2,
            Delete = 3,
            Recover = 4
        }

        /// <summary>
        /// 审核类型: 1.新增、2.修改、3.删除、4.恢复
        /// </summary>
        public ExamineTypeEnum? ExamineType { get; set; }

        /// <summary>
        /// 审核状态枚举
        /// </summary>
        public enum ExamineStatusEnum
        {
            PendingApproval = 0,
            Approved = 1,
            Rejected = 2
        }

        /// <summary>
        /// 审核状态: 0.待审核、1.通过、2.驳回
        /// </summary>
        public ExamineStatusEnum? ExamineStatus { get; set; }

        /// <summary>
        /// 审核备注
        /// </summary>
        public string ExamineRemark { get; set; }
    }
}
